from constants import *

def breaks_and_colors(reps: int):
    if reps % (LONG_AFTER * 2) == 0:
        return "Break", RED, LONG_BREAK_MIN
    elif reps % 2 == 0:
        return "Short break", PINK, SHORT_BREAK_MIN
    else:
        return "Work", GREEN, WORK_MIN

def sec2text(count: int) -> str:
    min = count // 60
    sec = count % 60
    if sec < 10:
        sec = f"0{sec}"
    if min < 10:
        min = f"0{min}"
    return f"{min}:{sec}"
